package com.mt.channel.controller;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import com.mt.channel.api.service.IChannelCourseService;
import com.mt.channel.entity.ChannelCourseEntity;
import com.mt.common.PagerInfo;
import com.mt.common.ServiceResult;
@CrossOrigin
@RestController
public class ChannelCourseController {

    @Autowired
    IChannelCourseService channelCourseService;

    @GetMapping("/channelCourse/findList")
    public ServiceResult<List<ChannelCourseEntity>> findList(@RequestParam Map<String, Object> params, PagerInfo<?> pagerInfo) {
        return channelCourseService.findList(params, pagerInfo);
    }

}
